home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
TIFF_WIN
/
INIT_DEM.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-04-25
|
627b
|
30 lines
#include "my color.h"
init_color_demo() /* initialize all the managers needed, and prepare the
program for execution */
{
short i;
InitGraf(&thePort);
InitFonts();
FlushEvents(everyEvent,0);
InitWindows();
InitMenus();
TEInit();
InitDialogs(nil);
InitCursor();
for(i = 0; i < 5; i++)
MoreMasters(); /* be prepared to do some heavy duty RAM allocation! */
MaxApplZone();
SetUpMenus();
screenRect = screenBits.bounds;
SetRect(&dragRect,4,24,screenRect.right-4,screenRect.bottom-4);
doneFlag = false;
menusOK = false;
nextWNum = 1;
SetRect (&nextWRect,leftEdge,topEdge,rightEdge,botEdge);
}